package edu.zhangxu.dao;

import edu.zhangxu.pojo.Problem;
import edu.zhangxu.pojo.Solution;

import java.sql.Connection;
import java.util.List;
import java.util.Properties;

public interface ProblemDao {
    // 将problem对象添加到数据库中
    default void insert(Connection con, Problem problem) {

    }

    // 根据id删除一条记录
    default void deleteById(Connection con, int id) {

    }

    // 更新一条记录
    default void updateById(Connection con, Problem problem) {

    }

    default Problem getProblemById(Connection con, int id) {
        return null;
    }

    default Problem getProblemByName(Connection con, String name) {
        return null;
    }

    default Problem getSimpleProblemById(Connection con, int id) {
        return null;
    }

    default List<Problem> getSimpleAll(Connection con) {
        return null;
    }

    default Long getCount(Connection con) {
        return null;
    }
}
